feat: add Swedish language support in settings and translations#374
Merged
Conversation
Owner
|
Hey, thanks for this :) I'll take a look when I get back to this project |
Copied the contents of en.json to start the translation.
Added options for sv/Svenska
Translated file to Swedish. Edited with gedit and copy/paste on github. Compared line by line before sharing. paste -d '\n' en.json sv.json > combined.txt
Missing EOL ',' on many lines from copy/pasting errors on the combined file.
nekename
force-pushed
the
feat/add-sv-lang
branch
from
July 24, 2026 11:01
4c8e113 to
2cd0b21
Compare
Owner
|
@snowfruit could you confirm that Claude's suggested change from Nyckel to Knapp is correct? |
Contributor
Author
Button is Knapp in Swedish. Is "device_view.key" used as in "API key" I think "Nyckel" is correct. |
Owner
No, it's used as in Key in the button grid. <div class="flex flex-row" role="row">
{#each { length: device.columns } as _, c}
<Key
context={{ device: device.id, profile: profile.id, controller: "Keypad", position: r * device.columns + c }}
bind:inslot={profile.keys[r * device.columns + c]}
on:dragover={handleDragOver}
on:drop={(event) => handleDrop(event, "Keypad", r * device.columns + c)}
on:dragstart={(event) => handleDragStart(event, "Keypad", r * device.columns + c)}
{handlePaste}
size={device.id.startsWith("sd-") && device.rows == 4 && device.columns == 8 ? 192 : 144}
label="{$t('device_view.key')} {String.fromCharCode(65 + r)}{c + 1}"
tabindex={focusedRow === r && focusedCol === c ? 0 : -1}
/>
{/each}
</div> |
Contributor
Author
Than "tangent" or "knapp" is correct. Tangent if only on keyboard. Knapp can be anything you can push. Great catch. |
Owner
|
Thanks @snowfruit! |
Contributor
Author
Thank you for adding Swedish. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Preflight checklist
If you remove this checklist, this pull request will be closed without explanation.
Inspired by this #370 .
I think this PR introduces the first version of the Swedish language translation.
The current version is translated and proofread by me. Some phrases were searched for to find suitable alternatives.
I have not used github in a long time so I hope this is correct.